package server.shared;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Set;

import client.shared.MessageReceiver;

public interface ChatInterface extends Remote {
	String getServerName() throws RemoteException;

	void join(MessageReceiver n) throws RemoteException;
	
	void mergeClient(MessageReceiver n) throws RemoteException;

	void sendMessage(String sender, String receivers, String message)
			throws RemoteException;

	void disconnect(MessageReceiver n) throws RemoteException;

	Set<String> getAllConnectedPeople() throws RemoteException;

	String formatReceivers(Set<String> allDestinataireNames)
			throws RemoteException;
}
